<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        body {
            background-image: url("bg.jpg");
            background-repeat: no-repeat;
            background-position: 10% 10%;
            background-attachment: fixed; /*固定图片*/
            background-size: cover;
        }
    </style>
</head>
<body>

</body>
</html>